//
//  NewsnoticeViewController.m
//  结伴
//
//  Created by wsl on 16/8/22.
//  Copyright © 2016年 aleven. All rights reserved.
//

#import "NewsnoticeViewController.h"
#import "NewsnoticeTableViewCell.h"
@interface NewsnoticeViewController ()

@end

@implementation NewsnoticeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"新消息通知";
}

//返回多少组
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    //#warning Incomplete implementation, return the number of sections
    return 1;
}
//返回多少行
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    
    return 3;
}


//cell高
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 60;
}

//返回组头的高度
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    
    return 10 ;
}
//返回cell
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    
    static NSString *deteID = @"NewsnoticeTableViewCell";
    
    NewsnoticeTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:deteID];
    
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:deteID owner:nil options:nil] lastObject];
    }
    
    
    if (indexPath.row == 0) {
        
         cell.labletitle.text = @"接收新消息通知";
    }else if (indexPath.row == 1){
        cell.labletitle.text = @"声音";
    }else{
        cell.labletitle.text = @"震动";

    }
    
   
    
    
    return cell;
}

#pragma mark 点击cell
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
}

@end


